<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js">&quot;use strict&quot;;
Object.defineProperty(exports, &quot;__esModule&quot;, { value: true });
exports.EmailMatch = void 0;
var tslib_1 = require(&quot;tslib&quot;);
var abstract_match_1 = require(&quot;./abstract-match&quot;);
<span id='Autolinker-match-Email'>/**
</span> * @class Autolinker.match.Email
 * @extends Autolinker.match.AbstractMatch
 *
 * Represents a Email match found in an input string which should be Autolinked.
 *
 * See this class&#39;s superclass ({@link Autolinker.match.Match}) for more details.
 */
var EmailMatch =  (function (_super) {
    (0, tslib_1.__extends)(EmailMatch, _super);
<span id='Autolinker-match-Email-method-constructor'>    /**
</span>     * @method constructor
     * @param {Object} cfg The configuration properties for the Match
     *   instance, specified in an Object (map).
     */
    function EmailMatch(cfg) {
        var _this = _super.call(this, cfg) || this;
<span id='Autolinker-match-Email-property-type'>        /**
</span>         * @public
         * @property {&#39;email&#39;} type
         *
         * A string name for the type of match that this class represents. Can be
         * used in a TypeScript discriminating union to type-narrow from the
         * `Match` type.
         */
        _this.type = &#39;email&#39;;
<span id='Autolinker-match-Email-cfg-email'>        /**
</span>         * @cfg {String} email (required)
         *
         * The email address that was matched.
         */
        _this.email = &#39;&#39;; // default value just to get the above doc comment in the ES5 output and documentation generator
        _this.email = cfg.email;
        return _this;
    }
<span id='Autolinker-match-Email-method-getType'>    /**
</span>     * Returns a string name for the type of match that this class represents.
     * For the case of EmailMatch, returns &#39;email&#39;.
     *
     * @return {String}
     */
    EmailMatch.prototype.getType = function () {
        return &#39;email&#39;;
    };
<span id='Autolinker-match-Email-method-getEmail'>    /**
</span>     * Returns the email address that was matched.
     *
     * @return {String}
     */
    EmailMatch.prototype.getEmail = function () {
        return this.email;
    };
<span id='Autolinker-match-Email-method-getAnchorHref'>    /**
</span>     * Returns the anchor href that should be generated for the match.
     *
     * @return {String}
     */
    EmailMatch.prototype.getAnchorHref = function () {
        return &#39;mailto:&#39; + this.email;
    };
<span id='Autolinker-match-Email-method-getAnchorText'>    /**
</span>     * Returns the anchor text that should be generated for the match.
     *
     * @return {String}
     */
    EmailMatch.prototype.getAnchorText = function () {
        return this.email;
    };
    return EmailMatch;
}(abstract_match_1.AbstractMatch));
exports.EmailMatch = EmailMatch;
//# sourceMappingURL=email-match.js.map</pre>
</body>
</html>
